package com.twu.biblioteca.Users;

/**
 * Created by ppeter on 03/10/2014.
 */
public class User {
    String id;
    String name;
    String email;
    String phone;
    String password;

    public User(String name_, String email_, String phone_, String id_, String password_){
        this.id = id_;
        this.name = name_;
        this.phone = phone_;
        this.email = email_;
        this.password = password_;
    }

    public String getId(){
        return this.id;
    }

    public String getName(){
        return this.name;
    }
    public String getInfo(){
        String result = "";
        result += "Name:  " + this.name +"\n";
        result += "Phone: " + this.phone +"\n";
        result += "eMail: " + this.email;
        return result;
    }

    public boolean checkPassword(String password){
        return this.password.equals(password);
    }
}
